package com.model;

public class Book {
	private long id;
	private String name;
	private String author;
	private String describe;
	private double price;
	private long category_id;
	private Category category;
	
	public Book(){}
	public Book(String name, String author, String describe, double price, long category_id) {
		super();
		this.name = name;
		this.author = author;
		this.describe = describe;
		this.price = price;
		this.category_id = category_id;
	}

	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public long getCategory_id() {
		return category_id;
	}
	public void setCategory_id(long category_id) {
		this.category_id = category_id;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	@Override
	public String toString() {
		return "Book [id=" + id + ", name=" + name + ", author=" + author + ", describe=" + describe + ", price="
				+ price + ", category_id=" + category_id + ", category=" + category + "]";
	}
}
